
		    <tr>
	            <td  align="right" class="ln30 td200">{$title}：</td>
	            <td width="auto">

	                 <select name="{$name}" class="fl">
	                      <volist name='classl' id='classl'>
	                      	   <option  
	                      	      value="{$classl['classl_id']}"
	                      	      <if condition="$classl['classl_id'] eq $value">selected</if>
	                      	    >
	                      	    
	                      	      {$classl['classl_name']}
	                      	    </option>
	                      </volist>
	                 </select>
	                 <select  class="fl" name="classm_id">
	                      
	                 </select>
	                 <select  class="fl" name="classs_id">
	                      
	                 </select>
	            </td>
		    </tr>
<script type="text/javascript">
	$(document).ready(function(){
		var classl_id=$("select[name='classl_id']").val();
		getclassm(classl_id,'edit');
		$("select[name='classl_id']").change(function(){
			var id=$(this).val();
			getclassm(id,0);

		});
		$("select[name='classm_id']").change(function(){
			var id=$(this).val();
			getclasss(id,0);

		});
	});
	//获取中类
	function getclassm(id,action){
        var url="{:U(CONTROLLER_NAME.'/getclassm')}";
        $.post(url,{id:id},function(data){
        	 var html='';
        	 data=eval("("+data+")");
        	 if(data['status']=='success'){
                     var option='';
		        	 var classm_id="{$list['classm_id']}";
		        	 data=data['data'];
		        	 for(var i=0;i<data.length;i++){
		        	 	 var selected='';
		        	 	 if(data[i]["classm_id"]==classm_id && action=="edit"){
		                      selected='selected';
		        	 	 }
		                 option='<option value="'+data[i]["classm_id"]
		                       +'"'
		                       +selected
		                       +'>'
		                       +data[i]["classm_name"]
		                       +'</option>';
		                 html+=option;
		        	 }
		             $("select[name='classm_id']").html(html);
        	 }else{
        	 	html='<option value="0">'+data["msg"]+'</option>';
        	 	$("select[name='classm_id']").html(html);
        	 }
        	 
             var classm_id=$("select[name='classm_id']").val();
             getclasss(classm_id,action);
        });   
	}
	//获取小类
	function getclasss(id,action){
        var url="{:U(CONTROLLER_NAME.'/getclasss')}";
        $.post(url,{id:id,action:action},function(data){
        	 var html='';
        	 data=eval("("+data+")");
        	 if(data['status']=='success'){
                     var option='';
		        	 var classs_id="{$list['classs_id']}";
		        	 data=data['data'];
		        	 for(var i=0;i<data.length;i++){
		        	 	 var selected='';
		        	 	 if(data[i]["classs_id"]==classs_id && action=="edit"){
		                      selected='selected';
		        	 	 }
		                 option='<option value="'+data[i]["classs_id"]
		                       +'"'
		                       +selected
		                       +'>'
		                       +data[i]["classs_name"]
		                       +'</option>';
		                 html+=option;
		        	 }
		             $("select[name='classs_id']").html(html);
        	 }else{
        	 	html='<option value="0">'+data["msg"]+'</option>';
        	 	$("select[name='classs_id']").html(html);
        	 }
        });   
	}

</script>